package cn.aiweiyi.qingjing.coupon.comm.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author 青衿
 * @Date 2020/11/14 14:54
 * 统一响应的封装VO
 **/
//get、set方法
@Data
//有参
@AllArgsConstructor
//无参
@NoArgsConstructor
public class CommonResponse<T> implements Serializable {
    private Integer code;
    private String message;
    private T data;

    public CommonResponse(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
